import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [
     {
       path: '/',
       name: 'indexList',
       component: () => import('@/views/indexList.vue'),
       meta: {
         title: '' // 标题设置
       }
    },
    {
      path: '/course',
      name: 'courseList',
      component: () => import('@/views/courseList.vue'),
      meta: {
        title: '' // 标题设置
      }
    }
  ]
})
const originalPush = Router.prototype.push
Router.prototype.push = function push (location) {
  return originalPush.call(this, location).catch(err => err)
}

